//
//  DCFinishedHeaderView.m
//  JiuyaoMotorcade
//
//  Created by 大橙子 on 2018/11/29.
//  Copyright © 2018 Tomous. All rights reserved.
//

#import "DCFinishedHeaderView.h"

@implementation DCFinishedHeaderView
-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUpBaseHeaderView];
    }
    return self;
}

-(void)layoutSubviews {
    [super layoutSubviews];
    
    [self setBaseHeaderViewLayoutSubviews];
}
-(void)setModel:(DCOrderReceiveModel *)model {
    _model = model;
    
    self.carrierLabel.text = [UserInfo shareInstance].record.companyName;
    self.timeLabel.text = model.taskTime;
    if ([model.taskStatus integerValue] == 02) {
        self.stateLabel.text = @"已完成";
    }
    self.stateLabel.textColor = [UIColor lightGrayColor];
}
@end
